import Vue from 'vue'
import Router from 'vue-router'
import Element from 'element-ui'
import ViewUI from 'view-design'
import HelloWorld from '@/components/HelloWorld'
import LotteryTicket from '@/components/LotteryTicket'
import * as echarts from 'echarts'
import AxiosPlugin from 'vue-axios-cors'

Vue.use(Router)
Vue.use(Element)
Vue.use(ViewUI)
Vue.use(echarts)
Vue.use(AxiosPlugin)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/lottery_ticket',
      name: 'LotteryTicket',
      component: LotteryTicket
    }
  ]
})
